<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<title>发布活动</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<link rel="stylesheet" type="text/css" href="css/bootstrap.css" />
<link rel="stylesheet" href="css/iconfont.css" />
<link rel="stylesheet" type="text/css" href="css/index.css" />
<link rel="stylesheet" type="text/css" href="css/header.css" />
<link rel="stylesheet" type="text/css" href="css/publishContest.css" />
<script src="js/jquery-3.3.1.min.js" type="text/javascript"
	charset="utf-8"></script>
<script src="js/bootstrap.min.js" type="text/javascript" charset="utf-8"></script>
</head>

<body>
	<%@ include file="header.jsp"%>
	<%@ include file="slide.jsp"%>
	<div class="center-block" id="content">
		<form action="publishContest" method="post" id="publishForm" class="form-horizontal">
			<div class="page-header text-center">
    			<h3>基本信息 </h3>
			</div>
			<div id="baseInfo">
				
				<div class="form-group">
					<br>
					<label for="contestName" class="line col-sm-1 control-label">比赛名称</label>
					<div class="line col-sm-11">
						<input required type="text" class="form-control" placeholder="比赛名称" name="contestName" id="contestName"/>
					</div>
				</div>
				
				<div class="form-group">
					<label for class="line col-sm-1 control-label">报名时间</label> 
					<div class="line col-sm-5">
						<input required type="datetime-local" name="signupStartTime" id="signupStartTime" class="form-control"> 
					</div>
					<span class="line col-sm-1">至</span>
					<div class="line col-sm-5">
						<input required type="datetime-local" name="signuptEndTime" id="signupEndTime" class="form-control">
					</div>
				</div>
				<br>
				<div class="form-group">
					<label class="line col-sm-1 control-label" for="contsestStartTime">比赛时间</label>
					<div class="line col-sm-5">
						<input required type="datetime-local" name="contestStartTime" class="form-control">
					</div>
					<span class="line col-sm-1">至</span>
					<div class="line col-sm-5">
						<input required type="datetime-local" name="contestEndTime"	class="form-control">
					</div>
				</div>
			</div>
			<div class="page-header text-center" >
    			<h3>详细信息 </h3>
			</div>
			<div id="detailInfo">
				<br>
				<div class="form-group">
					<label class="line col-sm-1 control-label" for="contestImg">比赛图片</label>
					<div class="line col-sm-11 control-label">
						<input type="file" name="contestImg" id="contestImg">
					</div>
				</div>
				<br>
				<div class="form-group">
					<label class="line col-sm-12 control-label" for="contestDetail" style="text-align:left ;">比赛详细信息</label>
					<div class="line col-sm-12">
						<textarea form="publishForm" required  id="contestDetail" name="contestDetail" rows="100"  class="form-control" placeholder="对比赛的具体信息、奖励、具体地点、公布结果的时间进行描述"></textarea>
					</div>
				</div>
				
			</div>
			<div id="actionBt" class="form-group">
				<div class="col-sm-2 col-sm-offset-5">
					<input type="submit" class="btn btn-success" value="发布" form="publishForm" id="submintBt">
				</div>
			</div>
		</form>


	</div>
</body>
</html>
